<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::group(['middleware' => 'login'], function () {


	//后台首页
	Route::get('/admin/index','Admin\IndexController@index');

	//后台用户
	Route::controller('/admin/user','Admin\UserController');

	//后台项目管理
	Route::controller('/admin/ptype','Admin\PtypeController');

	//后台项目内容
	Route::controller('/admin/pcontent','Admin\PcontentController');

	//后台友情链接
	Route::controller('/admin/blink','Admin\BlinkController');

	//线下捐款路由
	Route::controller('/admin/loveuser','Admin\LoveuserController');

	//轮播图
	Route::controller('/admin/tca','Admin\TcaController');

	//网络配置
	Route::controller('/admin/config','Admin\ConfigController');

	//选项卡
	Route::controller('/admin/tab','Admin\TabController');

	//后台分类板块
	Route::controller('/admin/type','Admin\TypeController');

	//文章板块管理
	Route::controller('/admin/artl','Admin\ArticleController');

	//救助类别管理
	Route::controller('/admin/ask','Admin\AskController');

	//申请人管理
	Route::controller('/admin/askuser','Admin\AskUserController');

	//志愿者管理
	Route::controller('/admin/loveperson','Admin\LovePersonController');

	//志愿者活动
	Route::controller('/admin/activities','Admin\ActivitiesController');

	//志愿者手记
	Route::controller('/admin/notes','Admin\NotesController');
});
//后台登录
Route::get('/admin','Admin\LoginController@login');
Route::post('/admin/loging','Admin\LoginController@loging');
//验证码
Route::get('/admin/Vcode','Admin\LoginController@Vcode');
//退出登录
Route::get('/admin/logout','Admin\LoginController@logout');

//前台公共部分(layout)
Route::controller('/homes/index','Home\IndexShowController');

Route::controller('/homes/types','Home\TypesController');

//项目分类
Route::controller('/home/ptype','Home\PtypeController');
//项目内容
Route::controller('/home/pcontent','Home\PcontentController');
//志愿者及捐助
Route::controller('/home/loveser','Home\VoluAndLoveController');


//后台首页
Route::get('admin/index','Admin\AdminController@index');

//轮播图
Route::controller('/admin/tca','Admin\TcaController');

//网络配置
Route::controller('/admin/config','Admin\ConfigController');

//选项卡
Route::controller('/admin/tab','Admin\TabController');

//下载 微博 微信
Route::controller('/admin/down','Admin\DownController');

//前台首页
// Route::controller('/home','Home\IndexShowController');

//前台首页
Route::controller('/home/index','Home\IndexController');

//板块内容
//Route::controller('/home/types','Home\TypesController');

//板块文章
//Route::controller('/home/typeshow','Home\TypeShowController');


//后台首页


Route::get('/admin/index','Admin\Indexcontroller@index');

//后台用户
Route::controller('/admin/user','Admin\Usercontroller');

//后台项目管理
Route::controller('/admin/ptype','Admin\Ptypecontroller');

//后台项目内容
Route::controller('/admin/pcontent','Admin\Pcontentcontroller');

//后台友情链接
Route::controller('/admin/blink','Admin\Blinkcontroller');

Route::get('/admin/index','Admin\AdminController@index');

//线下捐款路由
Route::controller('/admin/loveuser','Admin\LoveuserController');

//线上捐款路由
// Route::controller('/admin/loveusersl','Admin\LoveuserslController');

Route::get('admin/index','Admin\AdminController@index');

//轮播图
Route::controller('/admin/tca','Admin\TcaController');

//网络配置
Route::controller('/admin/config','Admin\ConfigController');

//选项卡
Route::controller('/admin/tab','Admin\TabController');

//后台分类板块
Route::controller('/admin/type','Admin\TypeController');

//文章板块管理
Route::controller('/admin/artl','Admin\ArticleController');

//救助类别管理
Route::controller('/admin/ask','Admin\AskController');

//申请人管理
Route::controller('/admin/askuser','Admin\AskUserController');

//志愿者管理
Route::controller('/admin/loveperson','Admin\LovePersonController');


//前台首页
Route::controller('/homes/index','Home\IndexShowController');

//板块内容 layout和layout_one的 
Route::controller('/homes/types','Home\TypesController');

//板块文章
Route::controller('/homes/typeshow','Home\TypeShowController');

//文章内容详情
Route::controller('/homes/cont','Home\ArtlContentsController');

//志愿者及捐助
Route::controller('/homes/loveser','Home\VoluAndLoveController');

//我要捐赠
Route::controller('/homes/care','Home\UserCareController');

//捐款查询
Route::controller('/homes/select','Home\SelectController');

//申请救助
Route::controller('/homes/ask','Home\UserAskController');

//志愿者报名入口
Route::controller('/homes/useradd','Home\UserAddController');


